SRCDIRS += scc

SIMSRC += \
	Bus.cpp \
	LineFlags.cpp \
	LineMask.cpp \
	SCCSimulator.cpp \
        MESICache.cpp \
        MatchInfo.cpp \
	MSHR.cpp \
        scc_pools.cpp \
	SnoopACK.cpp \
	SnoopDelayRequest.cpp \
	SnoopRequest.cpp \
	SnoopResponse.cpp \
	SplitBus.cpp \

.PHONY:  test-scc test-scc-L1 test-scc-L2-shared
test: test-scc
test-scc: test-scc-L2-shared
test-scc-L1: working_tests $(TEST_PROGS_WORKING_COMMON:%=%.scc.L1.run) $(TEST_PROGS_WORKING_LOCK:%=%.scc.L1.run)
test-scc-L2-shared: working_tests $(TEST_PROGS_WORKING_COMMON:%=%.scc.L2shared.run)

%.scc.L1.run: %
	$(TEST_ENV) ./$< --- --system scc --cache_shared 0 > $(DEVNULL)

%.scc.L2shared.run: %
	$(TEST_ENV) ./$< --- --system scc -cache_shared > $(DEVNULL)

